package development.app.mxh;

import state.GameForm;
import state.Graphics;
import state.media.VideoControl;
import development.Constants;
import development.DrawUtils;
import development.Global;

public class FrmVideo extends GameForm {

  private FrmMyAlbum frmMyAlbum;

  public FrmVideo(FrmMyAlbum frmMyAlbum1, VideoControl videoControl) {
    this.frmMyAlbum = frmMyAlbum1;
    int width = Constants.SCREEN_WIDTH;
    int height = Constants.SCREEN_HEIGHT;
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, Global.systemCanvas);
    videoControl.setDisplayLocation(2, 2);
    videoControl.setDisplaySize(width - 4, height - 4);
    videoControl.setDisplayFullScreen(true);
    videoControl.setVisible(true);
  }

  public void draw(Graphics g) {
    //g.setColor(0x00ff00);
    //g.drawRect(0, 0, GameConstants.SCREEN_WIDTH, DrawUtils.getBottomBarHeight());
    DrawUtils.drawTopBar(g);
    // int width = getWidth();
    // int height = getHeight();
    //
    // g.setColor(0x00ff00);
    // g.drawRect(0, 0, width - 1, height - 1);
    // g.drawRect(1, 1, width - 3, height - 3);
  }
}
